import { APollingTask, CacheData } from "../../PollingStation";

export class CacheDataRoom<T extends ICacheData=ICacheData> extends CacheData<T>
{

}

export class CacheRoomTask<T = CacheDataRoom<ICacheData>> extends APollingTask<T>
{
    // roomName!:string;

    Update(...arg:any[]): void
    {
        // this.roomName = arg[0];
        const room = Game.rooms[this.code];
        if(room)
        {

        }
        else
        {
            this.value =undefined;
        }
    }

}
